package com.qlyl.common.util.consumer;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

public class GsonUtil {

    private GsonUtil() {}

    private static class Holder {
        private static Gson gson;

        static {
            GsonBuilder gsonBuilder = new GsonBuilder();
            gsonBuilder.setDateFormat("yyyy-MM-dd HH:mm:ss");
            gson = gsonBuilder.create();
        }
    }

    public static Gson current() {
        return Holder.gson;
    }
}


